import request from '@/utils/request'
/**
 * 列表
 * @returns
 */
export function GetListAPI(params) {

    return request({
        url: '/system/sysTeam/getList',
        method: 'GET',
        params
    })
}

/**
 * 设备弹窗列表
 */
export function GetPopDataListAPI(params) {
    return request({
        url: '/system/device/getPopDataList',
        method: 'GET',
        params

    })
}

/**
 * 
 * @param {*} data 
 * 新增
 */
export function AddDataAPI(data) {
    return request({
        url: '/system/sysTeam/add',
        method: 'POST',
        data
    })
}
/**
 * 回显
 */
export function GetViewAPI(data) {
    return request({
        url: '/system/sysTeam/' + data,
        method: 'GET',


    })
}

/**
 * 修改
 * @param {*} data 
 * @returns 
 */
export function EditDataAPI(data) {
    return request({
        url: '/system/sysTeam/edit',
        method: 'PUT',
        data
    })
}

// 删除
export function DelDataAPI(data) {
    return request({
        url: '/system/sysTeam/remove/' + data,
        method: 'DELETE'
    })
}
/**
 * 
 * @param {} data 
 * @returns 禁用启用
 */
export function editStatusAPI(data) {
    return request({
        url: '/pureut-equipment/alarmSetting/editStatus',
        method: 'PUT',
        data
    })
}
/**
 * 类别树结构
 */
export function TreeListAPI() {
    return request({
        url: '/system/moldCategory/list',
        method: 'GET',
    })
}

/**
 * 一级树结构
 */
export function moldDdlAPI() {
    return request({
        url: '/system/moldCategory/ddl',
        method: 'GET',
    })
}
/**
 * 类别保存
 */
export function AddCategoryAPI(data) {
    return request({
        url: '/system/moldCategory/add',
        method: 'POST',
        data
    })
}
/**
 * 
 * @param {} data 
 * @returns 删除
 */
export function DelCategoryAPI(data) {
    return request({
        url: '/system/moldCategory/' + data,
        method: 'DELETE'
    })
}

/**
 * 日历
 */

export function GetCalendarAPI() {
    return request({
        url: '/system/shopCalendar/getCalendarDdl',
        method: 'GET',
    })
}

/**
 * 班次
 */
export function GetTeamAPI(params) {
    return request({
        url: '/system/shopCalendar/getTeam',
        method: 'GET',
        params
    })
}
/**
 * 线别
 */

export function GetLineAPI(params) {
    return request({
        url: '/system/shopCalendar/getLine',
        method: 'GET',
        params
    })
}

/**
 * 用户
 */

export function userSaaAPI() {
    return request({
        url: '/web/system/user/list',
        method: 'GET',

    })
}
